home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 7: Sunsite / Linux Cubed Series 7 - Sunsite Vol 1.iso / system / serial / getty_ps.000 / getty_ps / getty_ps-2.0.7i / Examples / uugetty.sched < prev    next >
Text File  |  1993-04-17  |  2KB  |  50 lines

  1. # [ put this file in /etc/default/uugetty.<line> ]
  2. #
  3. # sample uugetty configuration file for a Hayes compatible modem to allow
  4. # incoming modem connections
  5. #
  6. # this config file sets up uugetty to autoanswer, and enables the scheduler
  7. # to only allow logins between the hours of midnight and 8 in the morning.
  8.  
  9. # alternate lockfile to check... if this lockfile exists, then uugetty is
  10. # restarted so that the modem is re-initialized
  11. ALTLOCK=cua2
  12.  
  13. # scheduling information... contains times when the modem should be allowed
  14. # to answer.  All other times, the modem is disabled; if this line is not
  15. # included, then the modem is permitted to answer at any time.
  16. #
  17. # format: <day>:<hour24>:<minute>-<day>:<hour24>:<minute> ...
  18. SCHED=0:2:17-0:8:00 1:0:00-1:8:00 2:0:00-2:8:00 3:0:00-3:8:00 4:0:00-4:8:00 5:00:00-5:8:00 6:0:00-6:8:00
  19.  
  20. # modem disable string... like the init string, except this is run when
  21. # the modem should not answer the line.  Sets the modem to disable auto-
  22. # answer.
  23. # format: <expect> <send> ... (chat sequence) 
  24. OFF="" \d+++\dAT\r OK\r\n ATH0\r OK\r\n AT\sM0\sE1\sQ0\sV1\sX4\sS0=0\r OK\r\n
  25.  
  26. # timeout to disconnect if idle...
  27. TIMEOUT=60
  28.  
  29. # modem initialization string... Sets the modem to auto-answer
  30. #
  31. # format: <expect> <send> ... (chat sequence)
  32. INIT="" \d+++\dAT\r OK\r\n ATH0\r OK\r\n AT\sM0\sE1\sQ0\sV1\sX4\sS0=1\r OK\r\n
  33.  
  34. # this line is the connect chat sequence.  I have left this out for my
  35. # modem; If you want to use the autobauding feature of getty, the 
  36. # following line works also:
  37. #    CONNECT="" \d+++\dATO\r CONNECT\s\A
  38. # This is admittedly a little messy... it basically places the modem in
  39. # command mode and immediately reconnects.  This produces the CONNECT <speed>
  40. # message which getty uses to set the baudrate correctly.  This is not
  41. # necessary, though, since the remote user can strike return a few times
  42. # to sync things up.
  43. #
  44. # format: <expect> <send> ... (chat sequence)
  45. # CONNECT=
  46.  
  47. # this line sets the time to delay before sending the login banner
  48. DELAY=1
  49.